from django.conf.urls.defaults import *
from django.conf import settings

urlpatterns = patterns('',
    # DJango 0.9                   
    (r'^login/', 'djangoopenid.views.begin'),
    (r'^logincomplete/', 'djangoopenid.views.complete'),
    (r'^logout/', 'djangoopenid.views.logout'),
    (r'^pleaselogin/', 
        'django.views.generic.simple.direct_to_template', 
        {'template': 'djangoopenid/please_login.html'}),
    # DJango 1.0
#    url(r'^login/', 'djangoopenid.views.begin', name='djandoopenid-openidlogin'),
#    url(r'^logincomplete/', 'djangoopenid.views.complete', name='djandoopenid-openidcomplete'),
#    url(r'^logout/', 'djangoopenid.views.logout', name='djandoopenid-openidlogout'),
#    url(r'^pleaselogin/', 
#        'django.views.generic.simple.direct_to_template', 
#        {'template': 'djangoopenid/please_login.html'}, 
#        name='djangoopenid_please_login'),
)
